package cz.cvut.manatee.processManager;

import java.util.ArrayList;

/*
 * Vysledek provadeni dotazu
 */
public abstract class ValidResult extends Result {
	private static final long serialVersionUID = 1L;
	/*
	 * objekt ve kterem jsou ulozeny jednotliva slova ktera jsou oddelena formatovacimi
	 * znackami na jednotlive radky a sloupce
	 */
	protected final ArrayList<String> resultsList;

	public ValidResult() {
		this.resultsList = new ArrayList<String>();
	}

	public void addLine(){
		this.resultsList.add( "<line>" );
	}

	public void addWord(String word){
		this.resultsList.add( word );
	}
	
	public Object [] getResultArray(){
		return this.resultsList.toArray();
	}
}
